/**
 * 
 */
package com.vision.sales.sv.serv;

import javax.servlet.http.HttpServletRequest;

import com.vision.core.cm.PageOrientation;
import com.vision.core.cm.PageSize;

/**
 * @author Mark
 *
 */
public class PrintReportParams extends ReportParams {

	public PageSize size = PageSize.LETTER;
	public PageOrientation orientation = PageOrientation.LANDSCAPE;

	public PrintReportParams(HttpServletRequest req)
	{
		try {
			size = PageSize.valueOf(req.getParameter("size"));
		} catch (Exception e) {
		}
		
		try {
			orientation = PageOrientation.valueOf(req.getParameter("orientation"));
		} catch (Exception e) {
		}
	}
}
